import React from 'react'
import { Select, Button, Link,  Input, Switch, Checkbox } from '../../../ui-components'
import style from './style.address'
import BaseEdit, { Base } from './BaseEdit'
import BasePreview from './BasePreview'

class Edit extends Base {
	render() {
		return (
			<BaseEdit {...this.props} update={::this.update}/>
		)
	}
}

class Preview extends React.Component {
	render() {
		return (
			<BasePreview>
				<div className={style.preview}>
					<Select className={style.select}>
						<option>选择省市区:</option>
						<option value='1.1'>北京</option>
						<option value='1.2'>上海</option>
						<option value='1.3'>南京</option>
					</Select>
					<Input className={style.input} placeholder="填写地址"/>
				</div>
			</BasePreview>
		)
	}
}

export default {
	Edit,
	Preview
}
